#! /bin/bash

domin=`echo $2 | cut -f3 -d'/'`;
others=`echo $2 | cut -f4- -d'/'`;
case "$domin" in 
    *github.com*[^.git])
    url="https://gh-proxy.com/"$others;
    ;;
    *)
    url=$2;
    ;;
esac

echo "download from $url\n"
/usr/bin/aria2c -o $1 $url